package com.heima.model.search.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("search_history")
public class SearchHistory implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 搜索时间
     */
    private Date createdTime;
}
